package cn.tedu.springdemo.day06;

/**
 * DI依赖注入---如果有多个属性值为引用类型（各种类）
 * 自动装配方式：DI依赖注入---Xml方法
 */
public class AngelaBaby {
    private String name;
    private int age;
    private Tom tom;
    private Tiger tiger;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Tom getTom() {
        return tom;
    }

    public void setTom(Tom tom) {
        this.tom = tom;
    }

    public Tiger getTiger() {
        return tiger;
    }

    public void setTiger(Tiger tiger) {
        this.tiger = tiger;
    }

    @Override
    public String toString() {
        return "AngelaBaby{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", tom=" + tom +
                ", tiger=" + tiger +
                '}';
    }
}
